package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CstReimbursePaymentMapper;
import com.ruoyi.system.domain.CstReimbursePayment;
import com.ruoyi.system.service.ICstReimbursePaymentService;

/**
 * 报销支付Service业务层处理
 * 
 * @author zjw
 * @date 2023-01-04
 */
@Service
public class CstReimbursePaymentServiceImpl implements ICstReimbursePaymentService 
{
    @Autowired
    private CstReimbursePaymentMapper cstReimbursePaymentMapper;

    /**
     * 查询报销支付
     * 
     * @param paymentId 报销支付主键
     * @return 报销支付
     */
    @Override
    public CstReimbursePayment selectCstReimbursePaymentByPaymentId(Long paymentId)
    {
        return cstReimbursePaymentMapper.selectCstReimbursePaymentByPaymentId(paymentId);
    }

    /**
     * 查询报销支付列表
     * 
     * @param cstReimbursePayment 报销支付
     * @return 报销支付
     */
    @Override
    public List<CstReimbursePayment> selectCstReimbursePaymentList(CstReimbursePayment cstReimbursePayment)
    {
        return cstReimbursePaymentMapper.selectCstReimbursePaymentList(cstReimbursePayment);
    }

    /**
     * 新增报销支付
     * 
     * @param cstReimbursePayment 报销支付
     * @return 结果
     */
    @Override
    public int insertCstReimbursePayment(CstReimbursePayment cstReimbursePayment)
    {
        return cstReimbursePaymentMapper.insertCstReimbursePayment(cstReimbursePayment);
    }

    /**
     * 修改报销支付
     * 
     * @param cstReimbursePayment 报销支付
     * @return 结果
     */
    @Override
    public int updateCstReimbursePayment(CstReimbursePayment cstReimbursePayment)
    {
        return cstReimbursePaymentMapper.updateCstReimbursePayment(cstReimbursePayment);
    }

    /**
     * 批量删除报销支付
     * 
     * @param paymentIds 需要删除的报销支付主键
     * @return 结果
     */
    @Override
    public int deleteCstReimbursePaymentByPaymentIds(Long[] paymentIds)
    {
        return cstReimbursePaymentMapper.deleteCstReimbursePaymentByPaymentIds(paymentIds);
    }

    /**
     * 删除报销支付信息
     * 
     * @param paymentId 报销支付主键
     * @return 结果
     */
    @Override
    public int deleteCstReimbursePaymentByPaymentId(Long paymentId)
    {
        return cstReimbursePaymentMapper.deleteCstReimbursePaymentByPaymentId(paymentId);
    }
}
